﻿using Bricks.Business.Models.Systems;
using Bricks.Component.Utils;
using Bricks.Site.Models.ParamSetting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bricks.Business.Service
{
    /// <summary>
    /// 参数设置模块核心业务契约
    /// </summary>
    public interface IParamSettingService
    {
        /// <summary>
        /// 获取 菜单信息查询数据集
        /// </summary>
        IQueryable<ParamSetting> ParamSettings { get; }

        /// <summary>
        /// 根据Group和Tag获取内容值
        /// </summary>
        /// <param name="group"></param>
        /// <param name="tag"></param>
        /// <returns></returns>
        string GetContentByGroupAndTag(string group, string tag);

        /// <summary>
        /// 保存系统参数
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        OperationResult SaveSystemParam(SystemParamView view);
    }
}
